<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        .box {
            width: 600px;
            height: 600px;
            border: 1px solid #ccc;
            margin: 0 auto;
        }

        .box .row {
            display: flex;
        }
        .box .row .col_span {
            width: 30px;
            height: 30px;
            border: 1px solid #ccc;
            /* box-sizing: border-box; */
        }
    </style>
</head>
<body>
    <!-- 引入个各类 -->
        <script src="./js/Block.js"></script>
        <script src="./js/Map.js"></script>
        <script src="./js/Game.js"></script>
        <script src="js/Sanke.js"></script>
        <script src="./js/Food.js"></script>
        <script>
            // 实例化各个类
            var block = new Block();
            var map = new Map(20, 20, 600, 600);
            var snake = new Snake();
            var food = new Food(2, 6);

            // 实例化游戏类
            var g = new Game(snake, map, food, block);
        </script>
</body>
</html>